package com.changjiang.myproductsale.myproduct.entity;

public class Product {
    private int product_id;
    private int category_id;
    private int shop_id;
    private int product_comment_num;
    private int product_hot;
    private int product_special;
    private int product_search_hot;
    private double product_price;
    private double product_uprice;
    private String product_name;
    private String product_img_url;
    private String product_num;
    private String product_detail;
    //拼接来的
    private String shop_name;
    private String category_name;

    @Override
    public String toString() {
        return "Product{" +
                "product_id=" + product_id +
                ", category_id=" + category_id +
                ", shop_id=" + shop_id +
                ", product_comment_num=" + product_comment_num +
                ", product_hot=" + product_hot +
                ", product_special=" + product_special +
                ", product_search_hot=" + product_search_hot +
                ", product_price=" + product_price +
                ", product_uprice=" + product_uprice +
                ", product_name='" + product_name + '\'' +
                ", product_img_url='" + product_img_url + '\'' +
                ", product_num='" + product_num + '\'' +
                ", product_detail='" + product_detail + '\'' +
                ", shop_name='" + shop_name + '\'' +
                ", category_name='" + category_name + '\'' +
                '}';
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public int getShop_id() {
        return shop_id;
    }

    public void setShop_id(int shop_id) {
        this.shop_id = shop_id;
    }

    public int getProduct_comment_num() {
        return product_comment_num;
    }

    public void setProduct_comment_num(int product_comment_num) {
        this.product_comment_num = product_comment_num;
    }

    public int getProduct_hot() {
        return product_hot;
    }

    public void setProduct_hot(int product_hot) {
        this.product_hot = product_hot;
    }

    public int getProduct_special() {
        return product_special;
    }

    public void setProduct_special(int product_special) {
        this.product_special = product_special;
    }

    public int getProduct_search_hot() {
        return product_search_hot;
    }

    public void setProduct_search_hot(int product_search_hot) {
        this.product_search_hot = product_search_hot;
    }

    public double getProduct_price() {
        return product_price;
    }

    public void setProduct_price(double product_price) {
        this.product_price = product_price;
    }

    public double getProduct_uprice() {
        return product_uprice;
    }

    public void setProduct_uprice(double product_uprice) {
        this.product_uprice = product_uprice;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getProduct_img_url() {
        return product_img_url;
    }

    public void setProduct_img_url(String product_img_url) {
        this.product_img_url = product_img_url;
    }

    public String getProduct_num() {
        return product_num;
    }

    public void setProduct_num(String product_num) {
        this.product_num = product_num;
    }

    public String getProduct_detail() {
        return product_detail;
    }

    public void setProduct_detail(String product_detail) {
        this.product_detail = product_detail;
    }

    public String getShop_name() {
        return shop_name;
    }

    public void setShop_name(String shop_name) {
        this.shop_name = shop_name;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public Product(int product_id, int category_id, int shop_id, int product_comment_num, int product_hot, int product_special, int product_search_hot, double product_price, double product_uprice, String product_name, String product_img_url, String product_num, String product_detail, String shop_name, String category_name) {
        this.product_id = product_id;
        this.category_id = category_id;
        this.shop_id = shop_id;
        this.product_comment_num = product_comment_num;
        this.product_hot = product_hot;
        this.product_special = product_special;
        this.product_search_hot = product_search_hot;
        this.product_price = product_price;
        this.product_uprice = product_uprice;
        this.product_name = product_name;
        this.product_img_url = product_img_url;
        this.product_num = product_num;
        this.product_detail = product_detail;
        this.shop_name = shop_name;
        this.category_name = category_name;
    }
    public Product(int product_id, String product_name, int product_comment_num) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_comment_num = product_comment_num;
    }

    public Product(int product_id, int product_search_hot, String product_name, String product_img_url) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_search_hot = product_search_hot;
        this.product_img_url =product_img_url;
    }

}
